const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  devServer:{
    proxy:{
      "/api":{
        target:'https://m.mafengwo.cn',
        ws: true,//https
        changeOrigin: true,//是否允许代理请求
        pathRewrite:{//路径重写
          "^/api":''   
        }
      }
    }
  }
})
